SRC_HOME_DIR = C:/src/svn121127/f95/tsv2012

RM_FILES=rm
CF=gfortran
#http://faculty.washington.edu/rjl/uwamath583s11/sphinx/notes/html/gfortran_flags.html
#CFLAGS = -g -pedantic -Wconversion -Wall -Wextra
CFLAGS = -g 
#DEP_FLAGS = -cpp -M

SRC_EXT  = f95

#http://stackoverflow.com/questions/313778/generate-dependencies-for-a-makefile-for-a-project-in-c-c
# Add .d to Make's recognized suffixes.
SUFFIXES += .d

# ignore file named 'all'?
.PHONY: all clean
# dealing with gfortran bug
%.o : %.mod


SRC_DIR      := $(SRC_HOME_DIR)/src
OBJ_DIR      := C:/src/obj
SRC_MAKEFILE := $(SRC_HOME_DIR)/make/Makefile_tsv2012_base.mk 
TRGT_LIB         := $(OBJ_DIR)/tsv2012.a

all: $(TRGT_LIB)
	@echo "all: (TRGT_LIB)"
	@echo "  (TRGT_LIB)=" "$(TRGT_LIB)"
	@echo "  (SRCS)=" "$(SRCS)"
	@echo "  (OBJS)=" "$(OBJS)"
	@echo "  ok"


# include generic
include $(SRC_MAKEFILE)

#http://www.chemie.fu-berlin.de/chemnet/use/info/make/make_5.html#SEC42
#To ignore errors in a command line, write a `-' at the beginning of the line's text (after the initial tab). The `-' is discarded before the command is passed to the shell for execution.
clean: 
	-${RM_FILES}  $(OBJ_DIR)/*.o  $(OBJ_DIR)/*.mod  $(TRGT_LIB)





